Skip to content

Conversation

ashr123
Copy link
Contributor

@ashr123 ashr123 commented Oct 10, 2025

About 1 week ago, FasterXML released Jackson 3.0, so I want to add support for it (i.e. being able to read log4j2.json ext. files.
See https://github.com/FasterXML/jackson/wiki/Jackson-Release-3.0
Closes #3950

Important

Base your changes on 2.x branch if you are targeting Log4j 2; use main otherwise.

Checklist

Before we can review and merge your changes, please go through the checklist below. If you're still working on some items, feel free to submit your pull request as a draft—our CI will help guide you through the remaining steps.

✅ Required checks

  • License: I confirm that my changes are submitted under the Apache License, Version 2.0.

  • Commit signatures: All commits are signed and verifiable. (See GitHub Docs on Commit Signature Verification).

  • Code formatting: The code is formatted according to the project’s style guide.
    Need some help with log4j-core/pom.xml

    How to check and fix formatting
    • To check formatting: ./mvnw spotless:check
    • To fix formatting: ./mvnw spotless:apply

    See the build instructions for details.

  • Build & Test: I verified that the project builds and all unit tests pass.
    Need some help with log4j-core/pom.xml

    How to build the project

    Run: ./mvnw verify

    See the build instructions for details.

🧪 Tests (select one)

  • I have added or updated tests to cover my changes.
  • No additional tests are needed for this change.

📝 Changelog (select one)

  • I added a changelog entry in src/changelog/.2.x.x. (See Changelog Entry File Guide).
  • This is a trivial change and does not require a changelog entry.

Signed-off-by: Roy Ash <[email protected]>
Signed-off-by: Roy Ash <[email protected]>
@ppkarwasz
Copy link
Contributor

ppkarwasz commented Oct 11, 2025

Hi @ashr123, thanks a lot for the PR!

We can’t merge this into the 2.x branch because 2.x targets Java 8, while Jackson 3 requires Java 17. That version mismatch would break our compatibility guarantees for the 2.x line.

As for the main branch (with a Java 17 baseline) we migrated to Jackson 3 shortly after the 3.0.0 release (see #3701) and we’re actively working toward our own 3.0.0 release.

@ppkarwasz ppkarwasz closed this Oct 11, 2025
@github-project-automation github-project-automation bot moved this from To triage to Done in Log4j bug tracker Oct 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Add suppost for reading log4j2.json with jackson-databind v3

2 participants